using System;
using System.Diagnostics;
using CxRomos.Core.Domain;
using CxRomos.Core.Domain.Entities;
using CxRomos.Core.Services.Implementation;
using NUnit.Framework;

namespace CxRomos.Core.Tests.Integration {
    [TestFixture]
    public class AccountRepositoryTest : RepositoryBase {
        [Test]
        public void AddAccountTest() {

            const string email = "acexman@gmail.com";

            var account = new Account {
                FirstName = "ace",
                LastName = "xman",
                Email = email,
                Password =
                Cryptography.Encrypt("ace", email.Split('@')[0]),
                CreateDate = DateTime.Now,
                LastUpdateDate = DateTime.Now,
                BirthDate = new DateTime(1974, 9, 6),
                EmailVerified = true
            };

            var key = "LyguPn/aTzJojVPOMfIZ1A+Q/C0c/7SNHI28Jj0xXWc=";
            var pass = key.Decrypt("danijel");
            Trace.Write(pass.ToString());
        }
    }
}